package com.teckteam.ptvsystem.view;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import com.teckteam.ptvsystem.model.ResultNode;

/**
 * Results row representation as a JPanel
 */
public class ResultRowPanel extends JPanel
{
   public ResultRowPanel(ResultNode resultNode)
   {
      String details[] = resultNode.getDestinationDetails();
      setLayout(new GridLayout(1,5));
      
      add(new JLabel(details[0]), 0);
      add(new JLabel(details[1]), 1);
      add(new JLabel(details[2]), 2);
      add(new JLabel(details[3]), 3);
      add(new JLabel(details[4]), 4);
   }
}
